﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace Lilium.Logging
{
	public class TraceLogListener: ILogListener
	{
		#region ILogListener Members

		public void Write(LogEntry logEntry)
		{
			if (logEntry == null) throw new ArgumentNullException("logEntry");

			Trace.WriteLine(string.Format(
				"{0:u} {1}: {2}", 
				DateTime.UtcNow,
				logEntry.Severity,
				logEntry.Message));
		}

		#endregion
	}
}
